home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text.html;
-
- import javax.swing.text.AttributeSet;
- import javax.swing.text.StyleConstants;
- import javax.swing.text.StyleContext;
-
- class StyleSheet$SmallConversionSet extends StyleContext.SmallAttributeSet {
- // $FF: synthetic field
- private final StyleSheet this$0;
-
- public StyleSheet$SmallConversionSet(StyleSheet var1, AttributeSet var2) {
- super(var1, var2);
- this.this$0 = var1;
- }
-
- public Object getAttribute(Object var1) {
- if (var1 instanceof StyleConstants) {
- CSS.Attribute var2 = StyleSheet.access$0(this.this$0).styleConstantsKeyToCSSKey((StyleConstants)var1);
- if (var2 != null) {
- Object var3 = super.getAttribute(var2);
- if (var3 != null) {
- return StyleSheet.access$0(this.this$0).cssValueToStyleConstantsValue((StyleConstants)var1, var3);
- }
- }
- }
-
- return super.getAttribute(var1);
- }
-
- public boolean isDefined(Object var1) {
- if (var1 instanceof StyleConstants) {
- CSS.Attribute var2 = StyleSheet.access$0(this.this$0).styleConstantsKeyToCSSKey((StyleConstants)var1);
- if (var2 != null) {
- return super.isDefined(var2);
- }
- }
-
- return super.isDefined(var1);
- }
- }
-